<div class="nav">
    <a class="sel" href="{:U('adminList')}">管理员列表</a>
    <a href="{:U('adminAdd')}">添加管理员</a>
</div>
<div class="list">
    <table class="table_list">
        <thead><tr>
                <td width="50px">ID</td>
                <td>管理员用户名</td>
                <td>用户组</td>
                <td width="130px">创建时间</td>
                <td width="80px">总登陆次数</td>
                <td width="130px">最后登陆时间</td>
                <td width="80px">最后登陆IP</td>
                <td width="40px">启用</td>
                <td width="150px">操作</td>
            </tr>
        </thead>
        <tbody>
        <foreach name="list" item="list">
            <tr>
                <td>{$list.admin_id}</td>
                <td>{$list.username}</td>
                <td>{$list.group_name}</td>
                <td>{$list.create_time|date='Y-m-d h:m:s',###}</td>
                <td>{$list.login_times}</td>
                <td>{$list.last_login_time|date='Y-m-d h:m:s',###}</td>
                <td>{$list.last_login_ip}</td>
                <td class="edit_toggle" attr_t="is_enable" attr_id="{$list.admin_id}">{$list.is_enable}</td>
                <td><a class="btn_a" href="{:U('adminEdit',Array('admin_id'=>$list['admin_id']))}">修改</a>
            <if condition="($list['admin_id'] neq I('session.admin_id')) AND ($list['admin_id'] neq 1)">&nbsp;<a class="btn_a2" href="{:U('adminDel',Array('admin_id'=>$list['admin_id']))}" onclick="return confirm('确定删除管理员 {$list.username} 吗？')">删除</a></if></td>
            </tr>
        </foreach>
        </tbody>
        <tfoot>
            <tr><td colspan="9"><div class="page">{$page}</div></td></tr>
        </tfoot>
    </table>
</div>
